<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<fmt:setBundle basename="MessageResources"/>

<logic:messagesPresent>
	<div id="errorsDiv"><table border cellpadding="1" align="center">
		<tr>
			<th><fmt:message key="errors.header"/></th>
			<td align="right" width="16">
				<a href="#" onclick="document.getElementById('errorsDiv').setAttribute('style','display:none')">
					<img src="images/icons/delete.png" border="0" width="16" height="16" title="<fmt:message key='element.query.deleteCol.label'/>" alt="<fmt:message key='element.query.deleteCol.label'/>">
				</a>
			</td>
		</tr>
		<tr><td colspan="2"><ul>
			<html:messages id="msg">
				<li>${msg}</li>
			</html:messages>
		</ul></td></tr>
	</table></div>
</logic:messagesPresent>

<logic:messagesPresent message="true">
	<div id="msgsDiv"><table border cellpadding="1" align="center">
		<tr>
			<th><fmt:message key="messages.header"/></th>
			<td align="right" width="16">
				<a href="#" onclick="document.getElementById('msgsDiv').setAttribute('style','display:none')">
					<img src="images/icons/delete.png" border="0" width="16" height="16" title="<fmt:message key='element.query.deleteCol.label'/>" alt="<fmt:message key='element.query.deleteCol.label'/>">
				</a>
			</td>
		</tr>
		<tr><td colspan="2"><ul>
			<html:messages id="msg" message="true">
				<li>${msg}</li>
			</html:messages>
		</ul></td></tr>
	</table></div>
</logic:messagesPresent>
